﻿using System;
using System.Collections.Generic;
using System.Text;
using MgSoft.K3Cloud.WebApi.Common.Dto.Bd;

namespace MgSoft.K3Cloud.WebApi.Common.Dto.Stk
{
    public class Stk_MisDeliveryBillEntry<Type_Bd_Material, Type_Db_UnitGetDto> 
        where Type_Bd_Material : Bd_MaterialGetDto
        where Type_Db_UnitGetDto : Db_UnitGetDto
    {
        public long Id { get; set; }
        public long Seq { get; set; }

        public Type_Bd_Material MaterialId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public long? ExtAuxUnitId_Id { get; set; }
        /// <summary>
        /// 辅单位
        /// </summary>
        public Type_Db_UnitGetDto ExtAuxUnitId { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public Type_Db_UnitGetDto UnitID { get; set; }

        /// <summary>
        /// 实发数量（辅单位）
        /// </summary>
        public decimal? ExtAuxUnitQty { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string EntryNote { get; set; }
    }

    public class Stk_MisDeliveryBillEntry : Stk_MisDeliveryBillEntry<Bd_MaterialGetDto, Db_UnitGetDto>
    {

    }
}
